$ () ->
	_status = () ->
		_url = ''
		if $("#status").val() != null && $("#status").val() != ""
			_url = '&status=' + $("#status").val()
		return _url

	_orderId = () ->
		_url = ''
		if $("#order_id").val() != null && $("#order_id").val() != ""
			_url = '&order_id=' + $("#order_id").val()
		return _url

	$("#status").change (e) ->
		window.location.href = window.location.pathname + "?" + _status() + _orderId()

	$("#search").click (e) ->
		window.location.href = window.location.pathname + "?" + _status() + _orderId()